<%= render Alchemy::Admin::Resource::Table.new(@languages, query: @query, search_filter_params: search_filter_params) do |table| %>
  <% table.icon_column "translate-2", style: false %>
  <% table.column :name, sortable: true %>
  <% table.column :language_code, sortable: true %>
  <% table.column :country_code %>
  <% table.column :code %>
  <% table.column :locale %>
  <% table.column :frontpage_name %>
  <% table.column :page_layout do |row| %>
    <%= Alchemy::Page.human_layout_name(row.page_layout) %>
  <% end %>
  <% table.column :public %>
  <% table.column :default %>
  <% table.delete_button tooltip: Alchemy.t(:delete_language) %>
  <% table.edit_button tooltip: Alchemy.t(:edit_language), dialog_size: "430x415" %>
<% end %>

<%= render "alchemy/admin/resources/pagination", resources: @languages %>
